<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    input{
      width: 800px;
      height: 20px;
    }
  </style>
</head>
<body>
  <p>分数：<span>0</span></p>
  <input type="range" value="0">
  <script>
    const input = document.querySelector('input');
    const num = document.querySelector('span');
    input.addEventListener('click',function(){
      num.innerHTML = input.value;
    })
  </script>
</body>
</html>
